<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'head.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="css/usedcar.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
			
			function show(){
				window.parent.content.location = "mok/usedcar/login.jsp";
			}
			
			function logout()
			{
				var a = window.confirm("确认退出系统？");
				if(!a){
					return;
				}
				window.parent.location = "usedcar/viewSaleUsedCar_logout";
			}
			function init(){
				if("${eauser}"!=""){
					lg.innerHTML="<a href='eauserInfo.jsp'>${eauser.username}</a>";
					rg.innerHTML="<a href='javascript:void(0)' onclick='logout()'>退出</a>";
				}else{
					lg.innerHTML="<a href='javascript:void(0)' onclick='show()'>登录</a>";
					rg.innerHTML="<a href='register.jsp' target='_blank'>注册</a>";
				}
			}
   	</script>
  </head>
  
<body onload="init()">
  <div id="topPanel">
    <ul>
		<li><a href="#">About us</a></li>
		<li><a href="mok/forum/login.jsp">乐软论坛</a></li>
		<li><span id="rg"></span></li>
		<li><span id="lg"></span></li>
		<li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>
		<li><a href="usedcar/viewBuyUsedCar_show" style="color: red;" target="content">求购</a></li>
		<li><a href="usedcar/viewSaleUsedCar_show" style="color: red;" target="content">出售</a></li>
		<li><font size="4" style="color: blue;margin-right: 30px">二手车交易</font></li>
	</ul>
	
	<a href="index.jsp" target="_parent"><img src="images/logo.jpg" title="乐软汽车后信息管理平台" alt="Trial Services" width="230" height="80" border="0" /></a>
</div>

</body>
</html>
